package org.fast.develop.logicflow.runtime.enums;

import org.fast.develop.logicflow.runtime.PersistEnum2DB;

/**
 * @author czh
 * @version V1.0
 * @data Created on 2023-01-11 09:12
 */
public enum ExecuteDebugEnum implements PersistEnum2DB {

    start("start", "开始"),
    step_over("stepOver", "单步执行"),
    step_into("stepInto", "单步进入"),
    resume_program("resumeProgram", "直接执行"),
    end("end", "开始"),
    ;

    private String value;
    private String display;

    ExecuteDebugEnum(String value, String display) {
        this.value = value;
        this.display = display;
    }


    public static ExecuteDebugEnum create(Object name){
        return PersistEnum2DB.create(ExecuteDebugEnum.class, name);
    }

    @Override
    public String getValue() {
        return value;
    }

    public void setValue(String value) {
        this.value = value;
    }

    @Override
    public String getDisplay() {
        return display;
    }

    public void setDisplay(String display) {
        this.display = display;
    }
}
